﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SVM;

namespace ModelPredictPro.Predict.SVM {
    public interface ISVMPredictParam : ISVMSetting {
        double C { get; set; }
        double Gamma { get; set; }
    }
    class SVMPredictParam : ISVMPredictParam {
        #region ISVMPredictParam 成员

        public Dictionary<int, double> Weights { get; set; }

        public double C { get; set; }

        public double Gamma { get; set; }

        #endregion

        #region ISVMSetting 成员

        public bool UseProbability { get; set; }
        public ParameterSelection.ParallelMode ParallelModeSetting { get; set; }

        public double CacheMemorySize { get; set; }

        public KernelType KernelType { get; set; }

        #endregion
    }
    public interface ISVMSetting {
        bool UseProbability { get; set; }
        //bool UseMPI { get; set; }
        ParameterSelection.ParallelMode ParallelModeSetting { get; set; }
        double CacheMemorySize { get; set; }
        KernelType KernelType { get; set; }
        Dictionary<int, double> Weights { get; set; }
    }
}
